package com.szh.cloud.api.role.control;

import com.szh.cloud.api.role.service.ApiRoleService;
import com.szh.cloud.mybatis.entity.PtRoleEntity;
import com.szh.cloud.mybatis.etable.ElTable;
import com.szh.cloud.mybatis.flexigrid.PagingBean;
import com.szh.cloud.role.entity.SearchRoleEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/role")
public class ApiRoleController {
    @Resource
    private ApiRoleService apiRoleService;
    @RequestMapping("/queryRoleListByPage")
    public ElTable<PtRoleEntity> queryRoleListByPage(SearchRoleEntity entity, PagingBean paging){
        ElTable<PtRoleEntity> entityElTable = apiRoleService.queryRoleListByPage(entity,paging);
        return entityElTable;
    }
}
